/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Handlers;

import apiAccess.APIAccess;
import apiAccess.APIEXception;
import apiAccess.Language;
import java.io.IOException;
import java.util.List;
import org.xml.sax.SAXException;

/**
 *
 * @author w
 */
public class LanguageHandler {

    List<Language> languageList;
    int actualLanguage;

    public LanguageHandler() throws SAXException, IOException, APIEXception{
        languageList=APIAccess.getLanguageList();
    }

    public Language getLangauge(int i){
        return languageList.get(i);
    }

    public void setActualLanguage(int i){
        actualLanguage=i;
    }

    public Language getActualLanguage(){
        return languageList.get(actualLanguage);
    }
}
